<!DOCTYPE html>
<html lang="en" xmlns:v-if="http://www.w3.org/1999/xhtml" xmlns:v-elseif="http://www.w3.org/1999/xhtml"
      xmlns:v-else="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/html.js"></script>
</head>
<body>
<div id="nb">
    <ul>
        <li v-for="content in arr">{{content}}</li>
    </ul>
    <button v-on:click="fun1">打我啊</button>
</div>
<script>
    var data = new Object()
    var vue = new Vue({
        el:"#nb",
        data:{
            arr:["a","b","c","d"]
        },
        methods:{
            fun1:function () {
                alert(111),
                    console.log(data),
                    console.log(this)
            }
        },
        mounted:function () {
            console.log("执行数据初始化")
        }
    })
</script>
</body>
</html>